package com.semlab.client.fwk.ap.mvp;

import java.util.logging.Logger;

import com.google.gwt.user.client.ui.ProvidesResize;
import com.google.gwt.user.client.ui.ResizeComposite;
import com.semlab.client.fwk.ap.mvp.BaseMVP.Presenter;

public abstract class BaseView<P extends Presenter<?>> extends ResizeComposite implements BaseMVP.View<P>, ProvidesResize {
	
	protected Logger log = Logger.getLogger(getClass().getName());
	
	protected P presenter; 

	@Override
	public void setPresenter(P presenter) {
		this.presenter = presenter;
	}
	
	@Override
	public void onPresenterStop() {
//		log.fine(":: leaving view");
	}
	
	@Override
	public void refresh() {
//		log.fine(":: refreshing view");
	}

}
